/*
 * Copyright (c) 2006-2025, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-08-01     RT-Thread    first version
 */

#include <rtthread.h>

#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>

#include <board.h>


#include <time.h>
#include "fcntl.h"
//
#include <rtthread.h>

#include <rtdevice.h>
#include <drv_common.h>

#include <sys/types.h>
#include <stdio.h>

#include "user_config.h"

int main(void)
{
    int count = 1;

    G_InitStorageThread_i32();

    G_InitUserModbusMasterThread_i32();
    G_InitUserModbusSlaveThread_i32();

    while (count++)
    {
        LOG_D("-----------------------------");


        rt_thread_mdelay(5000);
    }

    return RT_EOK;
}
